package com.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hc.entity.DigitalSignature;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DigitalSignatureMapper extends BaseMapper<DigitalSignature> {

    List<DigitalSignature> getIsSignature(@Param("idOnWork") Long idOnWork);


    @Select("select * from digital_signature where DATE_FORMAT( signature_time, '%Y-%m-%d' ) = #{date}")
    List<DigitalSignature> getIsSignatureList(@Param("date") String date);
}
